<html>
<head>
	<style type="text/css">
		body {
			background-color:#ededed;
		}
	</style>
	<script type="text/javascript" src="app:/js/dojo/dojo.js"></script>
	<script type="text/javascript" src="app:/js/dair/Aliases.js"></script>
	<script type="text/javascript">
		dojo.addOnLoad(function(){

			var myWindow = getWindow();
			dojo.connect(dojo.byId("bar"), "onclick", myWindow, function(){
				air.trace('clicked close button', this);
				this.close();
			});
			dojo.connect(dojo.byId("notify"), "onclick", myWindow, function(){
				this.notify(["Hello, World"]);
			});
		})
	</script>
</head>
<body>
	<h2>foo</h2>
	<button id="bar">close</button>
	<button id="notify">notify from this scope</button>
</body>
</html>